{=if $pages=}
{=if $pages->pre=}
<a href="{=$page_url=}page=1" class="arrow1"></a>
<a href="{=$page_url=}page={=$pages->pre=}" class="arrow2"></a>
{=/if=}
{=foreach from=$pages->ranges item=i=}
<a href="{=$page_url=}page={=$i=}"{=if $page==$i=} class="now"{=/if=}>{=$i=}</a>
{=/foreach=}
{=if $pages->next=}
<a href="{=$page_url=}page={=$pages->next=}" class="arrow3"></a>
<a href="{=$page_url=}page={=$pages->pageCount=}" class="arrow4"></a>
{=/if=}
{=/if=}